import { translateTitle } from '@/utils/i18n'
const AppConfig = {
  AppConfig: {
    search: {
      form: {
        method: 'dams.app.conf.query',
        name: 'search',
        field: [
          {
            type: 'input',
            name: 'APP_PARAMS_CN_DESC',
            label: translateTitle('Dams.DamsSystemManagement.参数中文描述'),
          },
          {
            type: 'input',
            name: 'APP_PARAMS_CODE',
            label: translateTitle('Dams.DamsSystemManagement.参数代码'),
          },
          {
            type: 'select',
            name: 'SUB_SYSTEM',
            label: translateTitle('Dams.DamsSystemManagement.所属子系统'),
            options: [],
            filterable: true,
          },
          {
            type: 'button',
            label: translateTitle('Dams.DamsSystemManagement.查询'),
            labelHidden: true,
          },
        ],
      },
    },
    dialog: {
      form: {
        api: '',
        name: 'dialog',
        field: [
          {
            type: 'input',
            name: 'APP_PARAMS_CN_DESC',
            label: translateTitle('Dams.DamsSystemManagement.参数中文描述'),
            isRules: true,
          },
          {
            type: 'input',
            name: 'APP_PARAMS_EN_DESC',
            label: translateTitle('Dams.DamsSystemManagement.参数英文描述'),
            isRules: true,
          },
          {
            type: 'select',
            name: 'APP_PARAMS_MUST_VALUE',
            label: translateTitle('Dams.DamsSystemManagement.是否必填'),
            isRules: true,
            options: [
              {
                LABEL: translateTitle('Dams.DamsSystemManagement.是'),
                CODE: 'Y',
              },
              {
                LABEL: translateTitle('Dams.DamsSystemManagement.否'),
                CODE: 'N',
              },
            ],
          },
          {
            type: 'input',
            name: 'APP_PARAMS_VAL',
            label: translateTitle('Dams.DamsSystemManagement.参数值'),
            isRules: true,
          },
          {
            type: 'select',
            name: 'GROUP_NAME',
            label: translateTitle('Dams.DamsSystemManagement.缓存分组字段'),
            isMultiple: true,
            options: [],
            filterable: true,
            isRules: true,
          },
          {
            type: 'input',
            name: 'TYPE',
            label: translateTitle('Dams.DamsSystemManagement.参数类型'),
            hidden: true,
            value: 'APP_CONFIG',
          },
          {
            type: 'input',
            name: 'APP_PARAMS_CODE',
            label: translateTitle('Dams.DamsSystemManagement.参数代码'),
            isRules: true,
          },
          {
            type: 'select',
            name: 'SUB_SYSTEM',
            label: translateTitle('Dams.DamsSystemManagement.所属子系统'),
            options: [],
            filterable: true,
            isRules: true,
          },
          {
            type: 'input',
            name: 'EDIT_USER_ID',
            label: translateTitle('Dams.DamsSystemManagement.修改用户id'),
            hidden: true,
            value: '',
          },

          {
            type: 'input',
            name: 'EDIT_DATE_TIME',
            label: translateTitle('Dams.DamsSystemManagement.修改时间'),
            hidden: true,
            value: '',
          },
          {
            type: 'input',
            name: 'ADD_USER_ID',
            label: translateTitle('Dams.DamsSystemManagement.接口新增用户ID'),
            hidden: true,
            value: '',
          },
          {
            type: 'input',
            name: 'ADD_TIME',
            label: translateTitle('Dams.DamsSystemManagement.新增时间'),
            hidden: true,
            value: '',
          },
          {
            type: 'input',
            name: 'ADD_DATE_TIME',
            label: translateTitle('Dams.DamsSystemManagement.接口新增时间'),
            hidden: true,
            value: '',
          },

          {
            type: 'button',
            label: translateTitle('Dams.DamsSystemManagement.提交'),
            labelHidden: true,
          },
        ],
      },
    },
    addMethod: 'dams.app.conf.insert',
    deleteMethod: 'dams.app.conf.delete',
    updateMethod: 'dams.app.conf.update',
  },
}
export default AppConfig
